package com.exam.demo.util.generic;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

/**
 * 功能描述
 * 种群
 * @author yxj30
 * @date 2022/04/25  18:00
 */
@RestController
@Data
public class Population {

    private ArrayList<Individual> papers;

    //打印
    public void print(){
        for (int i = 0; i < papers.size(); i++) {
            System.out.println(papers.get(i).toString());
        }
    }
}
